<?php

namespace App\Http\Controllers\OpenShop\FeishuMini;

use App\Http\Controllers\BaseController;
use App\Service\OpenShop\FeishuMini\CommonService;
use Illuminate\Http\Request;

class CommonController extends BaseController
{
    public function getCityByLngAndLat(Request $request)
    {
        $lat = $request->get('lat', 0);
        $lng = $request->get('lng', 0);
        $haveAdcode = $request->haveAdcode;
        $haveCity   = $request->haveCity;
        return $this->success(CommonService::getCityByLngAndLat($lng, $lat, $haveAdcode, $haveCity));
    }
}
